package com.hdsx.restful.lzzt.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.lzzt.bean.Ggp;
import com.hdsx.restful.lzzt.mapper.GgpMapper;
import com.hdsx.restful.lzzt.service.GgpService;
@Service
public class GgpServiceImpl extends BaseOpearte<Ggp> implements GgpService {

    public GgpServiceImpl() {
        super("GIS_GGP");
    }

	@Resource(name="ggpMapper")
	private GgpMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String name) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", name);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Ggp> queryList(String xzqhbm, String name, int begin, int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", name);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Ggp> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Ggp selectOne(String id) {
		return mapper.selectOne(id);
	}
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}
}
